package com.hu.zhcc.shiro.entity.tj;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 疾病库
 * </p>
 *
 * @author tj
 * @since 2021-06-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TDiseaseLibrary extends Model<TDiseaseLibrary> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 编码
     */
    private String code;
    /**
     * 疾病名称
     */
    private String name;
    /**
     * 就诊科室id,引用就诊科室表的id
     */
    private Integer clinicDepartmentId;
    /**
     * 预警等级
     */
    private String warningLevel;
    /**
     * 就医期限
     */
    private String medicalTreatmentPeriod;
    /**
     * 异常类型
     */
    private String exceptionTypes;
    /**
     * 是否职业病，0是，1否
     */
    private Integer occupationalDisease;
    /**
     * 适用性别 通用 男 女
     */
    private String gender;
    /**
     * 其他名称
     */
    private String otherName;
    /**
     * 医学解释
     */
    private String medicalInterpretation;
    /**
     * 常见原因
     */
    private String reason;
    /**
     * 建议
     */
    private String advise;
    /**
     * 创建时间
     */
    private String createTime;
    /**
     * 修改时间
     */
    private String updateTime;

    private TClinicDepartment tClinicDepartment;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getClinicDepartmentId() {
        return clinicDepartmentId;
    }

    public void setClinicDepartmentId(Integer clinicDepartmentId) {
        this.clinicDepartmentId = clinicDepartmentId;
    }

    public String getWarningLevel() {
        return warningLevel;
    }

    public void setWarningLevel(String warningLevel) {
        this.warningLevel = warningLevel;
    }

    public String getMedicalTreatmentPeriod() {
        return medicalTreatmentPeriod;
    }

    public void setMedicalTreatmentPeriod(String medicalTreatmentPeriod) {
        this.medicalTreatmentPeriod = medicalTreatmentPeriod;
    }

    public String getExceptionTypes() {
        return exceptionTypes;
    }

    public void setExceptionTypes(String exceptionTypes) {
        this.exceptionTypes = exceptionTypes;
    }

    public Integer getOccupationalDisease() {
        return occupationalDisease;
    }

    public void setOccupationalDisease(Integer occupationalDisease) {
        this.occupationalDisease = occupationalDisease;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getOtherName() {
        return otherName;
    }

    public void setOtherName(String otherName) {
        this.otherName = otherName;
    }

    public String getMedicalInterpretation() {
        return medicalInterpretation;
    }

    public void setMedicalInterpretation(String medicalInterpretation) {
        this.medicalInterpretation = medicalInterpretation;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getAdvise() {
        return advise;
    }

    public void setAdvise(String advise) {
        this.advise = advise;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public TClinicDepartment gettClinicDepartment() {
        return tClinicDepartment;
    }

    public void settClinicDepartment(TClinicDepartment tClinicDepartment) {
        this.tClinicDepartment = tClinicDepartment;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
